// pages/02admin/14warehouseGoods/warehouseGoods.js
Page({
    data: {
        isShowInputLabelArr: [false, false],
        waiterInfo: null,
        selected: true,
        selected1: false,
        selected2: false
    },
    selected: function (e) {
        this.setData({
            selected2: false,
            selected1: false,
            selected: true
        })
    },
    selected1: function (e) {
        this.setData({
            selected2: false,
            selected: false,
            selected1: true
        })
    },
    selected2: function (e) {
        this.setData({
            selected: false,
            selected1: false,
            selected2: true
        })
    },
    onLoad: function (options) {
        var isShowArray = []
        for (var i = 0; i < this.data.isShowInputLabelArr.length; i++) {

        }
    },
    submitWaiterInfo: function (e) {
        var params = e.detail.value
        console.log(params)
    },

    showInputLabel: function (e) {
        if (e.detail.value.length > 1) return;
        var index = Number(e.currentTarget.id);
        var isShowArray = this.data.isShowInputLabelArr;
        isShowArray[index] = true;

        this.setData({
            isShowInputLabelArr: isShowArray
        })
        console.log(isShowArray);
        console.log(this.data.isShowInputLabelArr);
        console.log(e.currentTarget.id);
    },


    onShareAppMessage: function () {

    }
})